// network card (ne2k) driver

#ifndef NE2K_H
#define NE2K_H

#include "common.h"
#include "pci.h"
#include "adapt.h"
#include "pack.h"

// initializes the card
void InitNe2k();

// ne2k card
struct ne2000_t
{
	u16int ioAddress;
	u8int saprom[16];
	void *recvPacketBuffer;
	u32int packetLength;
	u16int nextPacket;
	u32int irq;
	u32int wordMode;
	struct ethernet_t *eth;
	
	u32int packrecv;	
	u32int packsend;
};

// gets a pointer to one of the entries
struct ne2000_t* getNeCard( int i );


#endif // NE2K_H
